//
//  XYBookDetailModel.swift
//  XYReadBook
//
//  Created by fox on 2017/9/8.
//  Copyright © 2017年 tsaievan. All rights reserved.
//
import ObjectMapper
class XYBookDetailModel: BaseResponse {
    var id: String = ""
    var _le: String = ""
    var allowBeanVoucher:Bool = true
    var allowMonthly:Bool = true
    var allowVoucher:Bool = true
    var author:String = ""
    var cat:String = ""
    var chaptersCount:Int = 0
    var contentType:String = ""
    var cover:String = ""
    var creater:String = ""
    var currency:Int = 0
    var donate:Bool = false
    var followerCount:Int = 0
    var gender:[String] = []
    var hasCp:Bool = true
    var isSerial:Bool = false
    var lastChapter:String = ""
    var latelyFollower:Int = 0
    var longIntro:String = ""
    var majorCate:String = ""
    var minorCate:String = ""
    var postCount:Int = 0
    var retentionRatio:Double = 0
    var serializeWordCount:Int = 0
    var tags:Array<Any> = []
    var title:String = ""
    var updated:String = ""
    var wordCount:Int = 0
    var isUpdatechapter:Bool = false
    override func mapping(map: Map) {
        id                          <- map["_id"]
        _le                         <- map["_le"]
        allowBeanVoucher            <- map["allowBeanVoucher"]
        allowMonthly                <- map["allowMonthly"]
        allowVoucher                <- map["allowVoucher"]
        author                      <- map["author"]
        cat                         <- map["cat"]
        chaptersCount               <- map["chaptersCount"]
        contentType                 <- map["contentType"]
        cover                       <- map["cover"]
        creater                     <- map["creater"]
        currency                    <- map["currency"]
        donate                      <- map["donate"]
        followerCount               <- map["lastChapter"]
        gender                      <- map["followerCount"]
        hasCp                       <- map["hasCp"]
        isSerial                    <- map["isSerial"]
        lastChapter                 <- map["lastChapter"]
        latelyFollower              <- map["latelyFollower"]
        longIntro                   <- map["longIntro"]
        majorCate                   <- map["majorCate"]
        minorCate                   <- map["minorCate"]
        postCount                   <- map["postCount"]
        retentionRatio              <- map["retentionRatio"]
        retentionRatio              <- map["retentionRatio"]
        serializeWordCount          <- map["serializeWordCount"]
        tags                        <- map["tags"]
        title                       <- map["title"]
        updated                     <- map["updated"]
        wordCount                   <- map["wordCount"]
        isUpdatechapter             <- map["isUpdatechapter"]
    }
}

